/*
 * @Author: zjf
 * @Date: 2023-11-29 21:36:15
 * @LastEditors: zjf
 * @LastEditTime: 2023-12-07 16:05:11
 * @Description: 前期阶段1 项目方案研究1
 */

// 接口地址
export const api = window.$crud("business/scheme");

// 阶段code
export const stageCode = 1;

// 业务code
export const businessCode = 1;

export const formColmuns = [
  {
    label: "项目名称",
    prop: "projectName",
    dataType: "input",
    isNotAutoWrap: true,
    disabled: true,
  },
  // {
  //   label: "项目编码",
  //   prop: "projectCode",
  //   dataType: "input",
  //   isNotAutoWrap: true,
  //   disabled: true,
  // },
  // {
  //   label: "阶段进展",
  //   prop: "stageProgress",
  //   minWidth: 140,
  //   dataType: 'dataItem',
  //   dataCode: "periodicProgress",
  //   isNotAutoWrap: true,
  // },
  {
    label: "是否完成方案研究",
    prop: "isDone",
    minWidth: 140,
    dataType: "radio",
    dataCode: "trueOrFalse",
    isNotAutoWrap: true,
  },
  {
    label: "项目总投资",
    prop: "inveTotalAmount",
    minWidth: 140,
    dataType: "input",
    append: "万元",
    isNotAutoWrap: true,
  },
  {
    label: "项目建设规模",
    prop: "consScale",
    minWidth: 140,
    dataType: "input",
    append: "平米",
    isNotAutoWrap: true,
  },
  {
    label: "估算单价",
    prop: "estimatePrice",
    minWidth: 140,
    dataType: "input",
    append: "万元/平米",
    isNotAutoWrap: true,
  },
];

export const tableColmuns = [
  // {
  //   label: '项目编码',
  //   prop: 'projectCode',
  //   minWidth: 140,
  //   dataType: 'input',
  //   isNotAutoWrap: true,
  // },
  {
    label: "项目名称",
    prop: "projectName",
    minWidth: 140,
    dataType: "input",
    isNotAutoWrap: true,
  },
  // {
  //   label: "阶段进展",
  //   prop: "stageProgress",
  //   minWidth: 140,
  //   dataType: 'dataItem',
  //   dataCode: "periodicProgress",
  //   isNotAutoWrap: true,
  // },
  {
    label: "是否完成方案研究",
    prop: "isDone",
    minWidth: 140,
    dataType: "input",
    isNotAutoWrap: true,
  },
  {
    label: "项目总投资(万元)",
    prop: "inveTotalAmount",
    minWidth: 140,
    dataType: "input",
    append: "万元",
    isNotAutoWrap: true,
  },
  {
    label: "项目建设规模(平米)",
    prop: "consScale",
    minWidth: 140,
    dataType: "input",
    append: "平米",
    isNotAutoWrap: true,
  },
  {
    label: "估算单价(万元/平米)",
    prop: "estimatePrice",
    minWidth: 140,
    dataType: "input",
    append: "万元/平米",
    isNotAutoWrap: true,
  },
  {
    label: "更新时间",
    prop: "modifyTime",
    minWidth: 140,
    dataType: "datetime",
    format: "yyyy-MM-dd HH:mm:ss",
  },
];

export const formData = {
  projectName: "", // 项目名称
  projectCode: "", // 项目编码
  // stageProgress: "",     // 阶段进展

  isDone: "", // 是否完成方案研究
  inveTotalAmount: "", // 项目总投资
  consScale: "", // 项目建设规模
  estimatePrice: "", // 估算单价
};

export const rules = {};

let config = {
  api: api,
  stageCode: stageCode,
  businessCode: businessCode,
  formColmuns: formColmuns,
  tableColmuns: tableColmuns,
  formData: formData,
  rules: rules,
  width: 125
};

export default config;
